#!/bin/bash
source include_bench.sh
result_libsize="./log/result_libsize"
 

# backup 
mv ${result_libsize}.tsv ${result_libsize}_bak.tsv

echo "lib libso_size" > ${result_libsize}.tsv



trap "exit" INT
libpath=${libsize}
for lib in ${libsize_list}
do
	cur_libpath=`echo "${libpath}" | head -n 1`
	libpath=`echo "${libpath}" | tail -n +2`
	# 获得文件大小
	size=`ls -l ${cur_libpath} | awk '{print $5}'`
	
	echo "${lib} ${size} ${cur_libpath}"
	echo "${lib} ${size}" >> ${result_libsize}.tsv
done